<% 
	var headContent = {
	include("/pages/template/head.html"){}
%>

<script type="text/javascript">
var oper;
jQuery(function($) {
	// 页面方法
	oper = {
		width : 750,
		height : 400,
		form : document.form1,
		list : function() {
			var url = 'quartz/jobclass/list';
			this.form.action = url;
			this.form.submit();
		},
		add : function() {
			var url = 'quartz/jobclass/add';
			var title = '新增执行类';
			Iframe(url, this.width, this.height, title);
		},
        view : function(id) {
            var url = 'quartz/jobclass/view/'+id;
            var title = '查看详情';
            //Iframe(url, this.width, this.height, title);
            Iframe(url, this.width, this.height, title, false, false, false, EmptyFunc);
        },
		del : function(pId) {
			var url = 'quartz/jobclass/del/'+pId;
            Confirm('确定删除',function() {
                form1.action = url;
                form1.submit();
                return true;
            });
		}
	};
	//显示Menu索引
    showMenu('page_job');
	showMenu('page_job_class');
});

//分页
var paginator = function(page) {
	oper.list();
};
</script>

<%
};

var bodyContent = {
%>
	<form name="form1" action="" method="post"  class="form-inline" role="form">
		<!-- 菜单 -->
		<% include("/pages/template/menu.html"){} %>

		<div class="tableSearch">
			<%  //查询列表 %>
			<button type="button" class="btn btn-default" style="display: none" onclick="oper.list();" name="search">
			</button>
			<button type="button" class="btn btn-default" onclick="oper.add();">
			 		<span class="glyphicon glyphicon-plus"></span> 新 增
			</button>
		</div>
		<% if(!isEmpty(msg)) {%>
		<div class="alert alert-danger">提示：${msg!}</div>
		<%}%>

		<!-- 数据列表 -->
		<table class="table table-striped table-bordered table-hover">
			<thead>
				<tr>
                    <th>序号</th>
					<%  // 列表头部 %>
					<th name="name" class="sorting">描述</th>
					<th name="classAllName" >类全名（带包名）</th>
					<th name="functionName" class="sorting">方法名称</th>
					<th name="remark" >备注</th>
					<th style="width: 145px;">操作</th>
				</tr>
			</thead>
			<tbody>
			<% for(item in page.list) {%>
				<tr>

					<td>${itemLP.index }</td>
					<%  // 列表内容 %>
					<td>${item.name }</td>
					<td>${item.classAllName}</td>
					<td>${item.functionName}</td>
					<td>${item.remark}</td>
					<td>
						<a href="javascript:void(0);" class="btn btn-sm btn-success" onclick="oper.view('${item.uids}');">详情</a>
						<!--<a href="javascript:void(0);" class="btn btn-sm btn-primary" onclick="oper.edit('${item.UIDS}');">修改</a>-->
						<a href="javascript:void(0);" class="btn btn-sm btn-warning" onclick="oper.del('${item.uids}');">删除</a>
					</td>
				</tr>
			<% } %>
			</tbody>
		</table>
		<%include("/pages/includes/paginator.html"){} %>
	</form>
<%}; %>


<% layout("/pages/template/_layout.html",{head:headContent,body:bodyContent}){ %>
<%} %>
